<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
		<meta name="mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="theme-color" content="#2196f3">
		<title>天择可付</title>
		<link rel="stylesheet" href="../css/framework7.ios.min.css">
		<link rel="stylesheet" href="../css/framework7.ios.colors.min.css">
		<link rel="stylesheet" href="../css/framework7-icons.css">
		<link rel="stylesheet" href="../css/myapp.css?v=123">
		<link rel="stylesheet" href="../css/myyangshi.css">
		<link rel="stylesheet" href="../css/mui.min.css">
		<script type="text/javascript" src="../js/mui.min.js"></script>
		<style>
			.boutt {
				display: inline-block;
				border: 1px solid #CCCCCC;
				border-radius: 7px;
				font-size: 18px;
				color: #cccccc;
				padding: 5px 10px;
				margin: 10px auto;
			}
			
			.banner-index {
				background-color: #007AFF
			}
			
			.banner-index .col-50 {
				padding: 20px 0px 40px 0px;
				display: table-cell;
				vertical-align: middle;
				font-size: 24px;
				color: #FFFFFF;
			}
			
			.activity .col-50 {
				padding: 20px 20px;
				color: #929292;
			}
			
			.font-16-blue {
				font-size: 18px;
				color: #007AFF;
			}
			
			.index-navbar {
				background-color: #000;
				color: #FFFFFF;
			}
			
			.index-navbar:after {
				background-color: transparent;
			}
			
		</style>
		<script type="text/javascript">
			var weburl = 'http://192.168.6.122/';
			//var weburl = 'http://172.20.10.3/';
			document.addEventListener('plusready', onPlusReady, false);

			function onNetChange() {
				var nt = plus.networkinfo.getCurrentType();
				switch(nt) {
					case plus.networkinfo.CONNECTION_ETHERNET:
					case plus.networkinfo.CONNECTION_WIFI:
						return "wifi";
						break;
					case plus.networkinfo.CONNECTION_CELL2G:
					case plus.networkinfo.CONNECTION_CELL3G:
					case plus.networkinfo.CONNECTION_CELL4G:
						return "4G";
						break;
					default:
						plus.nativeUI.toast('当前无网络,请稍后重试');
						return false;
						break;
				}
			}

			function netchanges() {
				var nt = plus.networkinfo.getCurrentType();
				switch(nt) {
					case plus.networkinfo.CONNECTION_ETHERNET:
					case plus.networkinfo.CONNECTION_WIFI:
						//window.location.href = weburl;
						break;
					case plus.networkinfo.CONNECTION_CELL2G:
					case plus.networkinfo.CONNECTION_CELL3G:

						break;
					case plus.networkinfo.CONNECTION_CELL4G:
						//window.location.href = weburl;
						break;
					default:
						break;
				}
			}

			function onPlusReady() {
				document.addEventListener("netchange", netchanges, false);
				if(onNetChange()) {
					//window.location.href = weburl;
				}

			}

			function restart() {
				plus.runtime.restart();
			}

			function set_os() {
				if(plus.os.name == "iOS") {
					plus.nativeUI.alert("请手动设置");
				} else {
					var w = plus.nativeUI.showWaiting("", {
						modal: false,
						loading: {
							display: "inline"
						}
					});

					var main = plus.android.runtimeMainActivity(); //获取activity
					var Intent = plus.android.importClass('android.content.Intent');
					var Settings = plus.android.importClass('android.provider.Settings');
					var intent = new Intent(Settings.ACTION_WIFI_SETTINGS); //可设置表中所有Action字段
					main.startActivity(intent);

					w.close();
				}

			}
		</script>
		<script type="text/javascript">
			function open_win() {
				mui.openWindow({
					url: 'jyfx.html',
					id: '1',
					styles: {
						top: 0, //新页面顶部位置
						bottom: 0, //新页面底部位置
					},
					createNew: false, //是否重复创建同样id的webview，默认为false:不重复创建，直接显示
					show: {
						event: 'titleUpdate', //页面显示时机，默认为titleUpdate事件时显示
						extras: {} //窗口动画是否使用图片加速
					},
					waiting: {
						autoShow: true, //自动显示等待框，默认为true
					}
				})
			}
			
		</script>

	</head>

	<body>
		<div id="view-1" class="view view-main tab active">
			<div class="navbar index-navbar">
				<div class="navbar-inner">
					<div class="left">
					</div>
					<div class="center">
						<div class="buttons-row1">
							<a href="#tab1" class="button tab-link active">平台活动</a>
							<a href="#tab2" class="button tab-link">商品活动</a>
						</div>
					</div>
					<div class="right">

					</div>
				</div>
			</div>
			<!--<p style="text-align: center;font-size: 16px;background-color: initial;margin-top: 15px;color: #666;">暂无活动信息</p>-->
			<div class="pages navbar-through toolbar-through">
				<div data-page="home" class="page with-subnavbar">
					<div class="page-content hide-bars-on-scroll">
						<div class="tabs">
							<div id="tab1" class="tab active">
								<div class="card demo-card-header-pic">
									<a href="../view/wxwxj.html">
										<div valign="bottom" class="card-header color-white no-border">
											<img src="../img/wxwxj.jpg" width="100%"></div>
										<div class="card-content">
											<div class="card-content-inner">
												<p class="">微信无现金日活动</p>
												<p class="color-gray">2017.08.01 - 2017.08.08</p>
											</div>
										</div>
									</a>
								</div>
								<div class="card demo-card-header-pic">
									<a href="../view/activity/zfbwxj.html" class="link">
										<div valign="bottom" class="card-header color-white no-border">
											<img src="../img/zfbwxj.jpg" width="100%"></div>
										<div class="card-content">
											<div class="card-content-inner">
												<p class="">支付宝"无现金城市周"活动</p>
												<p class="color-gray">2017.07.15 - 2017.09.30</p>
											</div>
										</div>
									</a>
								</div>
								<div class="card-content-inner">

								</div>
							</div>
							<div id="tab2" class="tab">

								<div class="card demo-card-header-pic">
									<a href="../view/activity/hsy.html" class="link">
										<div valign="bottom" class="card-header color-white no-border">
											<img src="../img/2.jpg" width="100%"></div>
										<div class="card-content">
											<div class="card-content-inner">
												<p class="">汉斯浴资劵</p>
												<p class="color-gray">2017.07.10 - 2017.07.31</p>
											</div>
										</div>
									</a>
								</div>
								
								<div class="card demo-card-header-pic">
									<a href="../view/activity/xf.html" class="link">
										<div valign="bottom" class="card-header color-white no-border">
											<img src="../img/1.jpg" width="100%"></div>
										<div class="card-content">
											<div class="card-content-inner">
												<p class="">消费送礼</p>
												<p class="color-gray">2017.07.27 - 2017.08.27</p>
											</div>
										</div>
									</a>
								</div>

								<div class="card-content-inner">

								</div>
							</div>

						</div>
					</div>

				</div>
			</div>

		</div>
	
		<script type="text/javascript" src="../js/mui.min.js"></script>
		<script type="text/javascript" src="../js/framework7.min.js"></script>
		<script type="text/javascript" src="../js/toast.js"></script>
		<script type="text/javascript" src="../js/my-app.js?v=123"></script>
		<script type="text/javascript" src="../js/common.js?v=123"></script>
	</body>

</html>